/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2024-07-07 17:04:20
 * @LastEditTime: 2024-07-07 17:55:00
 * @FilePath: /nest_study/web/src/api/monitor/login-log.ts
 */
import { TQueryList, TResponse } from "@/api/index.type";
import { http } from "@/utils/request";

//列表
export const remoteList = (params: TQueryList) => {
    return http.get<TResponse>(`/api/monitor/login_log/list`, { params })
}

//全部清除
export const cleanAll = () => {
    return http.delete<TResponse>(`/api/monitor/login_log/clean`)
}

//删除
export const removeInfo = (ids: any[]) => {
    let data: any = { data: { ids } }
    return http.delete<TResponse>(`/api/monitor/login_log/delete`, data)
}

/**导出 */
export const exportFile = (data: any) => {
    return http.post<TResponse>(`/api/monitor/login_log/export`, data,{responseType: 'blob' });
};